package com.kl.feign;

import com.kl.em.Result;
import com.kl.feign.fallback.CollectionServiceFeignFallback;
import com.kl.feign.fallback.FreightServiceFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "kunlun-collection-delivery-service-b",fallback = CollectionServiceFeignFallback.class)//服务名找项目
public interface CollectionServiceFeign {

    //待收货款增加
    @PostMapping("/collectionController/insertCollection")
    Result insertCollection(@RequestParam String waybillId, @RequestParam String status);
}
